package com.gitee.huanminabc.utils_tools.security.enums;


import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum SexEnum implements IEnum<Integer> {
    //用户性别（0男，1女，2未知）
    MAN(0, "男"),
    GIRL(1, "女"),
    UNKNOWN(2, "未知");
    private Integer value;
    private String desc;

    SexEnum(final Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() { //用于mybatis-plus 实体类中的枚举类型字段映射
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
    }
